package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mybatisplus.model.domain.ConsultMerge;
import com.example.mybatisplus.model.domain.RecordLog;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2022-05-31
 */
@Repository
public interface ConsultMergeMapper extends BaseMapper<ConsultMerge> {
    public String queryConsult(Long stuId);
    public void addConsult(ConsultMerge consultMerge);


    RecordLog getsampleinrecordlog(Long teaId, Long stuId ,Long timeId);


    void autoadd(Long stuId, Long teaId, Long timeId, Integer consultCount);

    void updateconsultMerge(ConsultMerge consultMerge);

    ConsultMerge isbrokeofmerge(Long timeId, Long teaId);

    void autoupdate(Long stuId, Long teaId, Long timeId, Integer consultCount);

    Long getById(Long stuId);

    ConsultMerge getMergeById(Long stuId);

    List<ConsultMerge> getall();

    void deletelogic(Long id);

    List<ConsultMerge> queryConsultMerge(Long stuId);
}
